const com = {
  name: "com",
  template: "<div>这是全局组件</div>"
}

const components = [
  com
]

const install = function(Vue,opt){
  components.map(function(component){
    Vue.component(component.name,component)
  })
}
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
};

module.exports = {
  version: "1.0.0",
  install
}
